package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BusModelParts;
import com.ruoyi.system.service.BusModelPartsService;
import com.ruoyi.system.mapper.BusModelPartsMapper;
import com.ruoyi.system.service.IBusModelAccessoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author apep
* @description 针对表【bus_model_parts】的数据库操作Service实现
* @createDate 2024-03-27 16:55:24
*/
@Service
public class BusModelPartsServiceImpl implements BusModelPartsService {
    @Autowired
    private BusModelPartsMapper busModelPartsMapper;


    @Override
    public int insertBusModelByPartsCode(String busModel, String partsCode) {
        return busModelPartsMapper.insertBusModelByPartsCode(busModel,partsCode);
    }

    @Override
    public List<String> getBusModelByPartsCode(String partsCode) {
        return busModelPartsMapper.getBusModelByPartsCode(partsCode);
    }

    @Override
    public int updateBusModelByArray(String busModel, String partsCode) {
        return busModelPartsMapper.updateBusModelByArray(busModel,partsCode);
    }

    @Override
    public int deleteModelByArray( String partsCode) {
        return busModelPartsMapper.deleteModelByArray(partsCode);
    }

    @Override
    public int insertModelByArray(String busModel, String partsCode) {
        return busModelPartsMapper.insertModelByArray(busModel,partsCode);
    }
}
